<HTML><HEAD><TITLE>SoapStream.js</TITLE></HEAD><BODY>
<A NAME="_top_"></A><PRE><A HREF="index.html">Index Files</A> </PRE><HR/>
<H1>File SoapStream.js</H1>
 Provides a class used to read/write SOAP web services data streams. This implementation is focused on web service client requirements, it means that it is only able to write requests and read responses. This implementation supports only some XML Schema datatypes (integer, double,  string, boolean, datetime), SOAP-ENC-base64, SOAP-ENC:Array and structures.  This implementation does not support Soap Headers.  <P><DL><DT><B>Author:</B></DT><DD>Carlos Eduardo Goncalves</DD></DL></P>
<HR/>
<A HREF=#SoapStream>SoapStream</A><BR/>
<A HREF=#SoapStream.prototype.faultValue>SoapStream.prototype.faultValue</A><BR/>
<A HREF=#SoapStream.prototype.tree>SoapStream.prototype.tree</A><BR/>
<A HREF=#SoapStream.PROLOG >SoapStream.PROLOG </A><BR/>
<A HREF=#SoapStream.ENVELOPE >SoapStream.ENVELOPE </A><BR/>
<A HREF=#SoapStream.ARRAY >SoapStream.ARRAY </A><BR/>
<A HREF=#SoapStream.BASE64 >SoapStream.BASE64 </A><BR/>
<A HREF=#SoapStream.SOAP_VALUE >SoapStream.SOAP_VALUE </A><BR/>
<A HREF=#SoapStream.XSD_VALUE >SoapStream.XSD_VALUE </A><BR/>
<A HREF=#SoapStream.GENERIC_VALUE >SoapStream.GENERIC_VALUE </A><BR/>
<A HREF=#SoapStream.prototype.write>SoapStream.prototype.write</A><BR/>
<A HREF=#SoapStream.prototype.read>SoapStream.prototype.read</A><BR/>
<A HREF=#SoapStream.prototype.serialize>SoapStream.prototype.serialize</A><BR/>
<A HREF=#SoapStream.prototype.unserialize>SoapStream.prototype.unserialize</A><BR/>
<A HREF=#SoapStream.prototype.getDataType>SoapStream.prototype.getDataType</A><BR/>
<A HREF=#SoapStream.prototype.buildObject>SoapStream.prototype.buildObject</A><BR/>
<HR/>
<A NAME=SoapStream></A>
<H2>Constructor SoapStream</H2><PRE>function SoapStream()</PRE> <p>Soap stream constructor.</p><P></P><BR/><BR/>
<A NAME=SoapStream.prototype.faultValue></A>
<H2> Attribute SoapStream.prototype.faultValue</H2><PRE>SoapStream.prototype.faultValue</PRE> <p>Register if there is a fault.</p> <P></P><BR/><BR/>
<A NAME=SoapStream.prototype.tree></A>
<H2> Attribute SoapStream.prototype.tree</H2><PRE>SoapStream.prototype.tree</PRE> <p>Store parsed object tree.</p> <P></P><BR/><BR/>
<A NAME=SoapStream.PROLOG ></A>
<H2> Attribute SoapStream.PROLOG </H2><PRE>SoapStream.PROLOG </PRE> <p>Soap document prolog.</p> <P></P><BR/><BR/>
<A NAME=SoapStream.ENVELOPE ></A>
<H2> Attribute SoapStream.ENVELOPE </H2><PRE>SoapStream.ENVELOPE </PRE> <p>Soap envelope node.</p> <P></P><BR/><BR/>
<A NAME=SoapStream.ARRAY ></A>
<H2> Attribute SoapStream.ARRAY </H2><PRE>SoapStream.ARRAY </PRE> <p>SOAP-ENC schema array node.</p> <P></P><BR/><BR/>
<A NAME=SoapStream.BASE64 ></A>
<H2> Attribute SoapStream.BASE64 </H2><PRE>SoapStream.BASE64 </PRE> <p>SOAP-ENC schema base64 node.</p> <P></P><BR/><BR/>
<A NAME=SoapStream.SOAP_VALUE ></A>
<H2> Attribute SoapStream.SOAP_VALUE </H2><PRE>SoapStream.SOAP_VALUE </PRE> <p>SOAP-ENC schema simple type nodes (int, double, string, boolean, dateTime).</p><P></P><BR/><BR/>
<A NAME=SoapStream.XSD_VALUE ></A>
<H2> Attribute SoapStream.XSD_VALUE </H2><PRE>SoapStream.XSD_VALUE </PRE> <p>XML Schema simple type nodes (integer, double, string, boolean, dateTime).</p> <P></P><BR/><BR/>
<A NAME=SoapStream.GENERIC_VALUE ></A>
<H2> Attribute SoapStream.GENERIC_VALUE </H2><PRE>SoapStream.GENERIC_VALUE </PRE> <p>Generic node.</p> <P></P><BR/><BR/>
<A NAME=SoapStream.prototype.write></A>
<H2> Method SoapStream.prototype.write</H2><PRE>SoapStream.prototype.write = function(method)</PRE> <p>Write a SOAP document.</p> <P><TABLE WIDTH="90%" BORDER=1><TR BGCOLOR=#BDB3C4><TD><B>Parameter</B></TD><TD><B>Description</B></TD></TR><TR><TD><I>method</I></TD><TD><code>RemoteMethod</code> value object. </TD></TR></TABLE><DL><DT><B>Returns:</B></DT><DD><code>XMLDocument</code> instance that is a valid SOAP document.</DD></DL></P><BR/><BR/>
<A NAME=SoapStream.prototype.read></A>
<H2> Method SoapStream.prototype.read</H2><PRE>SoapStream.prototype.read = function(doc)</PRE> <p>Read a SOAP document.</p> <P><TABLE WIDTH="90%" BORDER=1><TR BGCOLOR=#BDB3C4><TD><B>Parameter</B></TD><TD><B>Description</B></TD></TR><TR><TD><I>doc</I></TD><TD><code>XMLDocument</code> to read. </TD></TR></TABLE><DL><DT><B>Returns:</B></DT><DD>JavaScript object tree.</DD></DL></P><BR/><BR/>
<A NAME=SoapStream.prototype.serialize></A>
<H2> Method SoapStream.prototype.serialize</H2><PRE>SoapStream.prototype.serialize = function(data, name)</PRE> <p>Encode a JavaScript object to a compatible SOAP representation.</p> <P><TABLE WIDTH="90%" BORDER=1><TR BGCOLOR=#BDB3C4><TD><B>Parameter</B></TD><TD><B>Description</B></TD></TR><TR><TD><I>data</I></TD><TD>JavaScript object to be encoded. </TD></TR><TR><TD><I>name</I></TD><TD><code>String</code> with an object attribute name or null. </TD></TR></TABLE><DL><DT><B>Returns:</B></DT><DD><code>String</code> with SOAP object representation.</DD></DL></P><BR/><BR/>
<A NAME=SoapStream.prototype.unserialize></A>
<H2> Method SoapStream.prototype.unserialize</H2><PRE>SoapStream.prototype.unserialize = function(node, parent)</PRE> <p>Decode SOAP representation to a compatible JavaScript object.</p> <P><TABLE WIDTH="90%" BORDER=1><TR BGCOLOR=#BDB3C4><TD><B>Parameter</B></TD><TD><B>Description</B></TD></TR><TR><TD><I>node</I></TD><TD><code>XMLDocument</code> current <code>Node</code>. </TD></TR><TR><TD><I>parent</I></TD><TD><code>XMLDocument</code> current parent <code>Node</code>. </TD></TR></TABLE><DL><DT><B>Returns:</B></DT><DD>JavaScript object tree. </DD></DL></P><BR/><BR/>
<A NAME=SoapStream.prototype.getDataType></A>
<H2> Method SoapStream.prototype.getDataType</H2><PRE>SoapStream.prototype.getDataType = function(data)</PRE> <p>Get the type used to represent a JavaScript object in the SOAP protocol.</p> <P><TABLE WIDTH="90%" BORDER=1><TR BGCOLOR=#BDB3C4><TD><B>Parameter</B></TD><TD><B>Description</B></TD></TR><TR><TD><I>data</I></TD><TD>A JavaScript object. </TD></TR></TABLE><DL><DT><B>Returns:</B></DT><DD><code>String</code> with the object type. </DD></DL></P><BR/><BR/>
<A NAME=SoapStream.prototype.buildObject></A>
<H2> Method SoapStream.prototype.buildObject</H2><PRE>SoapStream.prototype.buildObject = function(type)</PRE> <p>Build a JavaScript object based in a SOAP type.</p> <P><TABLE WIDTH="90%" BORDER=1><TR BGCOLOR=#BDB3C4><TD><B>Parameter</B></TD><TD><B>Description</B></TD></TR><TR><TD><I>type</I></TD><TD>A <code>String </code> with the SOAP type. </TD></TR></TABLE><DL><DT><B>Returns:</B></DT><DD>The object created or null. </DD></DL></P><BR/><BR/>
</BODY></HTML>
